package com.kun.kunkunmall.product.fallback;

import com.kun.common.exception.BizCodeEnum;
import com.kun.common.utils.R;
import com.kun.kunkunmall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

@Component
public class SeckillFeignFallback implements SeckillFeignService {

    @Override
    public R getSeckillInfo(Long skuId) {
        System.out.println("熔断方法启动");
        return R.error(BizCodeEnum.UNKNOWN_EXCEPTION.getCode(),BizCodeEnum.UNKNOWN_EXCEPTION.getMsg());
    }
}
